home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Standards 1994 January / InfoMagic Standards - January 1994.iso / ccitt / 1992 / t / t416_4.asc < prev    next >
Text File  |  1991-12-31  |  47KB  |  1,035 lines

  1.  
  2. 11.3.2 NBH - No break here
  3.        A control function which indicates a point where no line break must occur when text is formatted (see 
  4.  12.2.1.3.2).
  5.        Note - The graphic character NBSP (No Break SPace) should be taken to be equivalent to SPACE followed by 
  6.  
  7. NBH.
  8.  
  9. 11.3.3 PTX - Parallel texts
  10.        A control function which delimits passages of text which are interchanged one after the other, but intended to be 
  11. presented in parallel with one another (see  5.2.5).
  12.        The only parameter values permitted are:
  13.        0
  14.        1
  15.        3
  16.        The default value of the parameter is 0.
  17.        PTX with parameter value 1 is the opening delimiter of the first (principal) of two passages of text intended to be 
  18. presented in parallel with one another.
  19.        PTX with parameter value 3 is the closing delimiter of the first passage of text and the opening delimiter of the 
  20. second (supplementary) passage intended to be presented in parallel with the first.
  21.        PTX with parameter value 0 indicates the end of the supplementary passage of text.
  22.        Note - Japanese Ruby permits the specification of exactly one supplementary passage of text.
  23.  
  24. 11.4   Delimiters
  25.  
  26. 11.4.1 SOS - Start of string
  27.        A control function that acts as the opening delimiter of a string of graphic characters and/or control functions that is 
  28. marked to facilitate its removal by a subsequent content layout process. The string is closed by the terminating delimiter 
  29. control function ST (String Terminator).
  30.        A string thus delimited may contain occurrences of graphic characters and control functions, in particular CR 
  31. (Carriage Return), LF (Line Feed) and HYPHEN, introduced as a result of a formatting process (see  12.2.1.3).
  32. 11.4.2 ST - String terminator
  33.        A control function that acts as the terminating delimiter of a string opened by the delimiter control function SOS 
  34.  
  35. (Start Of String).
  36.  
  37. 11.5   SP - Space
  38.        A character with properties of both a graphic character and a logical control function.
  39.        As a control function, SP is significant to the content layout process. It acts as a word delimiter and indicates a 
  40. potential line break point except when it is immediately followed by another SP or by an occurrence of the control function 
  41. NBH (No Break Here) (see  11.3.2).
  42.        As a graphic character, SP causes the active position to be advanced without a graphic symbol to be imaged. 
  43. However, any graphic renditions that are in effect e.g. underlining, also apply to SP.
  44.        Any SP(s) that precede a line terminator, and follow the last graphic character of a line, are ignored by the imaging 
  45. process.
  46.  
  47. 12     Content layout process
  48.  
  49.        This section describes a content layout process for basic logical objects associated with content architectures of 
  50. type character.
  51.  
  52.  
  53.  
  54.  
  55.                                                     Fascicle VII.6 - Rec. T.416    1
  56.  
  57.  
  58.  
  59.        Its purpose is to aid understanding of the semantics of the presentation attributes and control functions by 
  60. describing the required results of such a process. However, it is not intended to specify any process that might be carried out 
  61. in a particular implementation to achieve these results.
  62.  
  63. 12.1   Introduction
  64.  
  65. 12.1.1 Purpose
  66.  
  67.        The content layout process describes a process of formatting and laying out character content into an allocated 
  68. area. This area is referred to as the available area and is determined by the document layout process defined in 
  69. Recommendation T.412.
  70.  
  71.        The purpose of the content layout process is to convert content associated with basic logical components into 
  72. content associated with basic layout objects. This might imply a transformation of the content from one form to another.
  73.        The content layout process results in the creation of a basic layout object(s) into which the content is to be 
  74. positioned. The dimensions of each basic layout object is returned to the document layout process which determines the 
  75. precise position of that basic layout object within the available area.
  76. 12.1.2 Available area
  77.        The content layout process is constrained by the available area. The maximum line length is constrained by the 
  78. dimension of the available area in the direction of the character path.
  79.        During the layout of the content associated with a basic logical object into a basic layout object, the following 
  80. cases can occur:
  81.        -    The formatted or formatted processable content fits into the available area.
  82.        -    The formatted or formatted processable content does not fit into the dimensions of the available area in the 
  83.             direction of line progression. In this case, an additional or a new available area is required depending upon 
  84.             any constraints imposed by the document layout process.
  85.        -    The formatted content does not fit into the dimension of the available area in the direction of the character 
  86.             path. In this case, a large available are is required.
  87.        Note - This case is most likely to occur when laying out formatted content associated with a basic logical object.
  88. 12.1.3 Presentation attributes
  89.        The content layout process takes into account the presentation attributes applying to the basic logical object with 
  90. which the content is associated. It also takes into account any control functions that are embedded in the content.
  91.        The presentation attributes applying to the content layout process can be specified in the generic layout structure 
  92. and presentation styles. The values of these presentation attributes are determined according to the defaulting rules specified 
  93. in Recommendation T.412.
  94. 12.1.4 Character content architecture classes
  95.        The content layout process is described for basic logical objects associated with content that conforms to any of 
  96. the three character content architecture classes (see  4.1) as follows:
  97.        -    processable form character content in which the content layout process provides for formatting of the 
  98.             content. The content layout process results in the output of content in formatted or formatted processable 
  99.             form depending upon the desired form of document;
  100.        -    formatted processable form character content in which the content layout process provides for reformatting 
  101.             of the content. This involves an initialization process which must be carried out on the content before the 
  102.             content layout process can be applied to that content. The content layout process results in the output of 
  103.             content in formatted or formatted processable form depending upon the desired form of document;
  104.        -    formatted form character content in which the content layout process has no effect on the content itself but 
  105.             still determines the dimensions of the basic layout object into which that content is to be positioned.
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117. 2           Fascicle VII.6 - Rec. T.416
  118.  
  119. 12.1.5 Use of delimiters
  120.  
  121.        When formatted processable form content is created as a result of the content layout process, all shared control 
  122. functions and graphic characters inserted into the content as a result of the content layout process are enclosed between the 
  123. delimiter control functions SOS (Start Of String) and ST (String Terminator).
  124.  
  125. 12.1.6 Layout of the content
  126.  
  127.        For each of the three character content architecture classes, three cases of laying out the content of basic logical 
  128. objects into basic layout objects are possible:
  129.  
  130.        -    single basic logical object to single basic layout object: the content of a single basic logical object can be 
  131.             laid out into a single basic layout object and is the only content associated with this basic layout object;
  132.  
  133.        -    single basic logical object to multiple basic layout object: the content of a single basic logical object is split 
  134.             among two or more basic layout objects, i.e. the content portions associated with two or more basic layout 
  135.             objects are derived from a single basic logical object;
  136.  
  137.        -    multiple basic logical object to single layout object: the content of two or more basic logical objects is laid 
  138.             out into a single basic layout object, i.e. the content portions of two or more basic logical objects are 
  139.             associated with a single basic layout object.
  140.  
  141.        Multiple basic logical object to multiple basic layout object is also possible, but not described explicitly since this is 
  142. a combination of the last two cases above.
  143.  
  144. 12.1.7 Layout sequence
  145.  
  146.        In all cases, the same sequence of steps for laying out content associated with a basic logical object is executed 
  147. as follows:
  148.        -    initialization;
  149.        -    determination of initial point;
  150.        -    formatting of the content;
  151.        -    identification of content portions;
  152.        -    determination of basic layout object dimensions;
  153.        -    determination of the value of the presentation attribute "initial offset".
  154.        This also results in the creation of a basic layout object.
  155.        Although the sequence of steps is the same in all cases, the action performed at individual steps may vary.
  156.  
  157. 12.2   Content layout process for processable content
  158.  
  159. 12.2.1 Single basic logical object to single basic layout object
  160.  
  161. 12.2.1.1Initialization
  162.        In the case of processable form content, no initialization of the content is necessary.
  163.  
  164. 12.2.1.2Determination of initial point
  165.        The location of the initial point depends upon:
  166.        -    the presentation attributes "character path" and "line progression" (determining the start edge and top edge 
  167.             of the basic layout object);
  168.        -    the presentation attribute "kerning offset" (specifying the location of the start edge of the positioning area 
  169.             relative to the start edge of the basic layout object);
  170.        -    the presentation attribute "indentation" (specifying the distance between the initial point and the start edge 
  171.             of the positioning area);
  172.  
  173.  
  174.  
  175.  
  176.  
  177.                                                     Fascicle VII.6 - Rec. T.416    3
  178.  
  179.  
  180.  
  181.        -    the invocation of a font by the presentation attribute "graphic rendition" and the presentation attribute 
  182.             "character orientation" (specifying the minimum backward extent of the first line box);
  183.  
  184.        -    the presence of control functions PLU (Partial Line Up), PTX (Parallel Texts), VPB (Line Position Backward) 
  185.             and font invocation by SGR (Select Graphic Rendition) in the first line of characters to be imaged 
  186.             (modifying the backward extent of the first line box).
  187.  
  188.        The position of the initial point relative to the start edge and top edge of the positioning area is determined such 
  189. that:
  190.  
  191.        -    its distance from the top edge of the positioning area is equal to the backward extent of the first line box;
  192.  
  193.        -    its distance from the start edge of the positioning area is equal to the value specified by the presentation 
  194.             attribute "indentation".
  195.  
  196.         The position of the initial point relative to the upper left corner of the basic layout object can be determined only 
  197. after the dimension of the basic layout object has been determined (see  12.2.1.5). This value is assigned to the 
  198. presentation attribute "initial offset" and should always be specified explicitly in order to achieve the desired result by the 
  199. content imaging process.  
  200. 12.2.1.3Formatting of the content
  201.  
  202.        Formatting of the content involves:
  203.  
  204.        -    the positioning of character images within a line box (see  5.2);
  205.  
  206.        -    the determination of line breaks;
  207.  
  208.        -    the positioning of line boxes within the basic layout (see  5.3).
  209.  
  210.        It may involve the insertion of control functions and the assignment of presentation attribute values to the basic 
  211. layout object.
  212.        As a general rule, the available area is utilized as much as possible in the direction of the character path.
  213.  
  214. 12.2.1.3.1Position of character images within a line box
  215.        There are two sets of operations that have an effect on the positioning of character images within a line box. One 
  216. of these sets is related to the presentation attribute "formatting indicator", the other is not.
  217.        The operations related to the attribute "formatting indicator" are:
  218.        -    alignment (presentation attribute "alignment");
  219.        -    tabulation (presentation attribute "line layout table" and the control function STAB);
  220.        -    first line offset (presentation attribute "first line offset");
  221.        -    itemization (presentation attribute "itemization");
  222.        -    pairwise kerning (presentation attribute "pairwise kerning").
  223.        Alignment and tabulation are mutually exclusive but itemization and first line offset may be applied in combination 
  224. with either of them.
  225.        These operations may be performed by either the content layout process or the content imaging process. However, 
  226. they can be performed by the content layout process only if the presentation attribute "formatting indicator" and the control 
  227. functions HPB (Character Position Backward), HPR (Character Position Relative), SACS (Set Additional Character 
  228. Separation), SRCS (Set Reduced Character Separation) and SSW (Set SPACE Width) are available in the content 
  229. architecture level concerned.
  230.        The result of performing these operations by the content layout process is the insertion of the above control 
  231. functions in the content.
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241. 4           Fascicle VII.6 - Rec. T.416
  242.  
  243.        If the content layout process has performed all of the specified operations for a basic layout object and inserted all 
  244. necessary control functions, the value of the presentation attribute "reformatting indicator" is set to 'yes', otherwise it is set to 
  245. 'no'.
  246.  
  247.        Whether or not the content layout process inserts these control functions, it always determines the allocation of 
  248. characters to each line box and the dimensions of each line box.
  249.  
  250.        Note - If the value of the presentation attribute "formatting indicator" is 'no' or if a font substitution has been made, 
  251. then the content imaging process should perform these operations.
  252.  
  253.        The other set of operations which are not related to the presentation attribute "formatting indicator" are:
  254.  
  255.        -    character ordering (control function SRS);
  256.        -    parallel annotation (control function PTX);
  257.        -    graphic character composition (control function GCC).
  258.  
  259. 12.2.1.3.1.1Pairwise kerning
  260.  
  261.        If the presentation attribute "pairwise kerning" specifies 'yes' and the content layout process is capable of 
  262. performing this function and the font used provides the necessary information, then certain combinations of character images 
  263. are positioned closer to (or further apart from) each other than determined by their position and escapement points.
  264.  
  265.        When pairwise kerning is performed by the content layout process, it will result in the insertion of control functions 
  266. HPB (Character Position Backward) or HPR (Character Position Relative)  between the two characters involved.
  267.  
  268. 12.2.1.3.1.2First line offset
  269.  
  270.        The characters associated with the first line can be controlled to be laid out differently from the rest of the lines in 
  271. this object.
  272.  
  273.        The presentation attribute "first line offset" specifies if the first line has an overhang or indentation relative to the 
  274. line home position.
  275.        When first line offset is performed by the content layout process, it will result in the insertion of a control function 
  276. HPB (Character Position Backward) or HPR (Character Position Relative).
  277. 12.2.1.3.1.3Itemization
  278.        The first line of a basic layout object may contain an item identifier. The position of the item identifier is controlled 
  279. by the presentation attribute "itemization".
  280.        When itemization is performed by the content layout process, it will result in the insertion of a control function HPB 
  281. (Character Position Backward) or HPR (Character Position Relative) before the text of the item identifier.
  282. 12.2.1.3.1.4Alignment
  283.        None of the alignments except 'start-aligned' can be performed until the dimensions of the basic layout object have 
  284. been determined (see  12.2.1.4).
  285.        When alignment is performed by the content layout process, the line length for alignment is determined to be:
  286.        -    for the first line, the distance between the line home position and the end edge of the positioning area 
  287.             minus the value of the presentation attribute "first line offset";
  288.        -    for all other lines, the distance between the line home position and the end edge of the positioning area.
  289.        The various values of the presentation attribute "alignment" are treated as follows:
  290.        -    'start-aligned' does not result in the insertion of any control functions;
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.                                                     Fascicle VII.6 - Rec. T.416    5
  302.  
  303.  
  304.  
  305.        -    'end-aligned' and 'centred' result in the insertion of a control function HPR (Character Position Relative) 
  306.             either before the first graphic character of each line or after the CR (Carriage Return) delimiting the item 
  307.             identifier if the presentation attribute "itemization" specifies a value other than 'no itemization';
  308.  
  309.        -    'justified' results in the insertion of zero, one or more control functions SSW (Set SPACE Width), SACS (Set 
  310.             Additional Character Separation) and/or SRCS (Set Reduced Character Separation) in each line which ends 
  311.             with a line terminator inserted by the content layout process. The precise usage of SACS SRCS and SSW 
  312.             is implementation dependent.
  313.  
  314.        Note - The presentation attribute "Alignment" does not apply to the item identifier.
  315.  
  316.        When the presentation attribute "alignment" has the value 'justified', irrespective of whether the alignment is 
  317. performed by the content layout process or the content imaging process, the control function JFY (No Justify) is inserted at 
  318. the beginning of the last line of a character sequence in order to avoid justification of this line by the content imaging 
  319. process.
  320.  
  321. 12.2.1.3.1.5Tabulation
  322.  
  323.        When tabulation is performed by the content layout process, it results in the insertion of a control function HPR 
  324. (Character Position Relative) or HPB (Character Position Backward) between each occurrence of the control function STAB 
  325. (Selective Tabulation) and the first graphic character following it.
  326.  
  327. 12.2.1.3.1.6Parallel annotation
  328.  
  329.        The occurrence of the control function PTX (Parallel Texts) in the content specifies that a string of characters is to 
  330. be laid out as a parallel annotation to another specified string of characters. The result of the content layout process is as 
  331. described in  5.2.5.
  332.  
  333.        If the output of the content layout process is in formatted form, the positioning of the parallel annotation is 
  334. achieved by the removal of all occurrences of PTX and the insertion of the appropriate control functions HPR (Character 
  335. Position Relative), HPB (Character Position Backward), VPR (Line Position Relative) and VPB (Line Position Backward).
  336.  
  337.        If the output of the content layout process is in formatted processable form, the positioning of the parallel 
  338. annotation is achieved by inserting the control functions HPR (Character Position Relative), HPB (Character Position 
  339. Backward), VPR (Line Position Relative) and VPB (Line Position Backward) and enclosing them by the delimiter control 
  340. functions SOS (Start Of String) and ST (String Terminator).
  341.  
  342. 12.2.1.3.1.7Character ordering
  343.  
  344.        The occurrence of the control function SRS (Start Reverse String) in the content of a basic logical object controls 
  345. the direction of imaging of the interchanged characters. The result of the content layout process is as described in  5.2.4.
  346.  
  347. 12.2.1.3.1.8Graphic character composition
  348.  
  349.        The control function GCC (Graphic Character Composition) is used to combine two or more graphic characters into 
  350. a single symbol. The width of these graphic characters may be less than the sum of the widths of the images of the 
  351. component characters.
  352.  
  353. 12.2.1.3.2Insertion of line breaks
  354.  
  355.        The formatting process may cause the insertion of additional line breaks into the content. Existing hard line 
  356. terminators (CR/LF combinations) that are already in the content remain in the content but must be taken into account during 
  357. the formatting process.
  358.  
  359.        If the output is in formatted processable form, the inserted line breaks consist of soft line terminators represented 
  360. by the control function sequence SOS CR LF ST. Optionally, characters inserted by an implementation dependent 
  361. hyphenation algorithm are included in the SOS-ST string. No characters are deleted from the content.
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371. 6           Fascicle VII.6 - Rec. T.416
  372.  
  373.        If the output is in formatted form, the inserted line breaks consist of hard line terminators represented by the 
  374. control function sequence CR LF. All occurrences of the control functions BPH (Break Permitted Here) and NBH (No Break 
  375. Here) are deleted.
  376.  
  377.        It is the intention of the formatting process that the number of characters between the inserted line breaks is the 
  378. maximum possible for each line. the exact algorithm for inserting line breaks is implementation dependent and is not defined 
  379. in the T.410 Series. However, the line break algorithm shall conform to the following constraints:
  380.  
  381.        -    a soft line break may by inserted:
  382.  
  383.             -    after a SP which is not immediately followed by another SP or the control function NBH (No Break 
  384.                  Here);
  385.  
  386.             -    after the control function BPH (Break Permitted Here);
  387.  
  388.             -    at a point determined by an implementation or language dependent algorithm;
  389.  
  390.        -    a line break is not permitted:
  391.  
  392.             -    when a subscribed rendition is active;
  393.             -    within a string with reversed presentation direction;
  394.             -    within a string of parallel annotation.
  395.  
  396. 12.2.1.3.3Positioning of line boxes
  397.  
  398.        The first line box is positioned with its line home position at the initial point as described in  12.2.1.2.
  399.  
  400.        Each line box is positioned with its line home position on the line from the initial point in the direction of line 
  401. progression.
  402.  
  403.        When proportional line spacing is not to be performed, the distance between the line home positions of two 
  404. successive line boxes is equal to the current line spacing. The initial value of the current line spacing is the value of the 
  405. presentation attribute "line spacing". This value may be altered by occurrences of the control function SVS (Select Line 
  406. Spacing) and SLS (Set Line Spacing).
  407.  
  408.        When proportional line spacing is to be performed by the content layout process, the distance between the line 
  409. home positions of two successive line boxes is evaluated by an implementation dependent algorithm. If the evaluated 
  410. distance differs from the current value of line spacing, the control function SLS (Set Line Spacing) is inserted before the line 
  411. terminator of the first line. The evaluated distance is inserted as the parameter of this control function and also becomes the 
  412. current line spacing.
  413.  
  414.        If the output of the content layout process is in formatted processable form, those occurrences of the control 
  415. function SLS (Set Line Spacing) inserted by the content layout process are enclosed by the delimiters SOS (Start Of String) 
  416. and ST (String Terminator).
  417.  
  418. 12.2.1.4Identification of content portions
  419.  
  420.        The content layout process shall also provide a value for the attribute "Content portion identifier - layout" for each 
  421. content portion associated with the layout structure.
  422.  
  423. 12.2.1.5Determination of basic layout object dimensions
  424.  
  425.        The formatting action continues until all the available content has been allocated or all the available area has been 
  426. filled.
  427.        The content layout process attempts to allocate the minimum portion of the available area sufficient to hold all of 
  428. the available content. Hence, the dimensions of the basic layout object can only be determined once formatting is complete.
  429.        The mapping to horizontal and vertical dimensions of the basic layout object is dependent upon the character path 
  430. as follows:
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.                                                     Fascicle VII.6 - Rec. T.416    7
  438.  
  439.  
  440.  
  441. w
  442.   ┌────────────────┬──────────────────────────┬───────────────────────────────────┐
  443.   │ Character path │  Dimension in direction  │ Dimension in direction orthogonal │
  444.   │                │     of character path    │         to character path         │
  445.   ├────────────────┼──────────────────────────┼───────────────────────────────────┤
  446.   │     0, 180     │  Horizontal dimension    │ Vertical dimension                │
  447.   ├────────────────┼──────────────────────────┼───────────────────────────────────┤
  448.   │    90, 270     │  Vertical dimension      │ Horizontal dimension              │
  449.   └────────────────┴──────────────────────────┴───────────────────────────────────┘
  450.  
  451. 12.2.2    Single basic logical object to multiple basic layout objects
  452.  
  453.      If the formatted content does not fit into the available area in the direction of 
  454. line progression then an additional available area has to be obtained from the document 
  455. layout process e.g. in the case of a page boundary. In this case, the content of a single 
  456. basic logical object is allocated to more than one basic layout object. The  original
  457. content portion is split into several content portions, each corresponding to a different 
  458. basic layout object.
  459.  
  460.      There are two changes with respect to the description in  12.2.1:
  461.  
  462.      -    the presentation attributes of the second and subsequent basic layout object 
  463.           are given values corresponding to the status of  rendition  (line  spacing,
  464.           character spacing, graphic renditions etc.) at the end of the previous basic 
  465.           layout object;
  466.  
  467.      -    the allocation of content to basic layout objects is to be performed such that 
  468.           the presentation attributes "orphan size" and "widow size" are fulfilled.
  469.  
  470. 12.2.3    Multiple basic logical objects to single basic layout object
  471.  
  472.      When concatenation results in the content associated with a more than one  basic
  473. logical object being laid out in a single basic layout object (see  7.5), it may  be
  474. necessary for the content layout process to insert control functions at the beginning of 
  475. the second and subsequent basic  logical  objects  so  that  the  values  of  certain
  476. presentation attributes associated with those basic logical objects are applied. These 
  477. control functions are:
  478.  
  479.      -    SHS (Select Character Spacing) or SCS (Set character Spacing) for "character 
  480.           spacing";
  481.      -    Designation and/or invocation sequences for "graphic character sets";
  482.      -    IGS (Identify Graphic Subrepertoire) for "graphic character subrepertoire";
  483.      -    SGR (Select Graphic Rendition) for "graphic rendition";
  484.      -    SVS (Select Line Spacing) or SLS (Set Line Spacing) for "line spacing".
  485.  
  486.      If the output of the content layout process is in formatted processable form, then 
  487. the control functions inserted by the content layout  process  are  enclosed  by  the
  488. delimiters SOS (Start Of String)  and ST (String Terminator).
  489.  
  490.      The presentation attribute "proportional line spacing" specified for the second or 
  491. subsequent basic logical objects is interpreted by  the  content  layout  process  as
  492. described in  12.2.1.
  493.  
  494.      The other presentation attributes specified for the second and subsequent  basic
  495. logical objects are ignored (see  7.5).
  496.  
  497. 12.3 Content layout process for formatted processable content
  498.  
  499.      For formatted processable form content, the initialization step of  the  content
  500. layout process shall:
  501.  
  502.  
  503.  
  504. 8           Fascicle VII.6 - Rec. T.416
  505.  
  506.  
  507.      -    remove all SOS-ST control strings from the content;
  508.  
  509.      -    remove all layout control functions (BS, HPB, HPR, JFY, SACS, SRCS and SSW) 
  510.           from the content (see  11.2);
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.                                                     Fascicle VII.6 - Rec. T.416    9
  573.  
  574.  
  575.  
  576.      -    combine all content portions associated with the same basic logical  object
  577.           into a single content portion in order to prevent unnecessary fragmentation of 
  578.           the document content which could otherwise occur;
  579.  
  580.      -    delete the content portion attribute "content layout identifier - layout", if 
  581.           present.
  582.  
  583.      After initialization, the content is in processable form. The remaining steps of the 
  584. content layout process are as described for processable content (see  12.2).
  585.  
  586. 12.4 Content layout process for formatted content
  587.  
  588.      For formatted content, the content layout process still  has  to  determine  the
  589. dimensions of the basic layout object to be allocated.
  590.  
  591.      The same steps of the content layout process are used as  for  processable  form
  592. content. In this case, however, formatting only involves:
  593.  
  594.      -    the positioning of character images within a line box as described in  5.2 
  595.           and 12.2.1.3.1;
  596.  
  597.      -    the positioning of line boxes within a basic layout object as described  in
  598.            5.3.
  599.  
  600.  
  601. 13   Content imaging process
  602.  
  603.  
  604.      This section describes a content imaging process for basic layout objects associated 
  605. with content architecture of type character.
  606.      Its purpose is to aid understanding of the semantics of the presentation attributes 
  607. and control functions by describing the required results of such a process. However, it 
  608. is not intended to specify any process that might be  carried  out  in  a  particular
  609. implementation to achieve these results.
  610. 13.1 Introduction
  611.      The content imaging process is only concerned with the logical  structures,  the
  612. presentation styles and the content of basic layout  components  conforming  to  this
  613. Recommendation.
  614.      All logical control functions, if any, are ignored.
  615.      The content imaging process is only applicable to the  formatted  and  formatted
  616. processable form character content architecture classes.
  617. 13.2 Content imaging process for formatted content
  618.      This section describes how the various shared and layout presentation attributes and 
  619. shared and layout control functions influence the image of the contents.
  620.      Most shared presentation attributes and shared control functions serve the purpose 
  621. of positioning and orienting character images along reference lines and for positioning 
  622. and orienting these reference lines within the basic layout object.
  623.      Thus, the effect of most shared presentation attributes and shared control functions 
  624. have already been described in the content layout process.
  625.      Most layout presentation attributes and control functions are related to positioning 
  626. and, thus, have already been described as the result of the content layout process.
  627.      The following sub-sections provide additional information relating to the content 
  628. imaging process.
  629. 13.2.1    Determination of initial point
  630.      The active position for imaging is set on the initial point within the basic layout 
  631. object. This information is derived from the presentation attribute "initial offset".
  632.  
  633.  
  634.  
  635. 10           Fascicle VII.6 - Rec. T.416
  636.  
  637. 13.2.2    Choosing character images
  638.      The following presentation attributes and control functions determine the character 
  639. images to be chosen for imaging:
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.                                                     Fascicle VII.6 - Rec. T.416    11
  703.  
  704.  
  705.  
  706.      -    "graphic character sets" and  code  extension  announcer,  designation  and
  707.           invocation control functions;
  708.  
  709.      -    "character fonts" (together with the attribute "fonts list" in the document 
  710.           profile);
  711.  
  712.      -    "graphic rendition" and SGR (Select Graphic Rendition).
  713.  
  714.      substitute for this font by making use of the font information available in  the
  715. document profile attribute "fonts list".
  716.  
  717. 13.2.3    Formatting indicator
  718.  
  719.      The presentation attribute "formatting indicator" specifies whether  first  line
  720. offset, itemization, alignment, tabulation and pairwise  kerning  have  already  been
  721. performed by the content layout process or not.
  722.  
  723.      If not, or if the result from the content layout process has been invalidated by a 
  724. font substitution, then the content imaging process must perform the task in the same way 
  725. as described in the content layout process (see  12.2.1.3.1).
  726. 13.3 Content imaging process for formatted processable content
  727.      For content in formatted processable form, the only difference from the case  of
  728. formatted form is that all logical control functions and the delimiter control functions 
  729. SOS (Start Of String) and ST (String Terminator) are ignored.
  730.      The effect of shared and layout presentation attributes and  shared  and  layout
  731. control functions is as described in  13.2.
  732.  
  733.  
  734. 14   Interactions between presentation attributes and control functions
  735.  
  736.      This section contains a summary of the interactions among and between presentation 
  737. attributes and control functions defined in various places in this Recommendation  as
  738. follows:
  739.      -    LF is restricted to be used in the following cases:
  740.           1)  at the beginning of the content of a basic layout component;
  741.           2)  immediately following a control function CR (Carriage Return);
  742.           3)  immediately following another LF.
  743.      -    BPH or CR is not permitted in the following cases:
  744.           1)  when PLU or PLD is active;
  745.           2)  after VPR and/or VPB have moved  the  active  position  away  from  the
  746. reference line;
  747.           3)  between the control functions SRS 1 and SRS 0;
  748.           4)  between the control functions PTX 1 and PTX 0.
  749.      -    Rendition aspects defined by some presentation attributes can be overridden by 
  750.           control functions embedded in content portions as follows:
  751. w
  752.   ┌──────────────────────────────────┬──────────────────────────────────┐
  753.   │      Presentation attribute      │         Control function         │
  754.   ├──────────────────────────────────┼──────────────────────────────────┤
  755.   │  Character spacing               │  SHS, SCS                        │
  756.   │  Line spacing                    │  SVS, SLS                        │
  757.   │  Graphic rendition               │  SGR                             │
  758.   │  Graphic character subrepertoire │  IGS                             │
  759.   │  Graphic character sets          │  Code extension control functions│
  760.   └──────────────────────────────────┴──────────────────────────────────┘
  761.  
  762.  
  763.  
  764.  
  765. 12           Fascicle VII.6 - Rec. T.416
  766.  
  767.      -    When the presentation attribute "line layout table" specifies any tabulation 
  768.           stops, the presentation attribute "alignment" is assumed to have the  value
  769.           "start-aligned".
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.                                                     Fascicle VII.6 - Rec. T.416    13
  834.  
  835.  
  836.  
  837. 15   Definition of character content architecture classes
  838.  
  839.  
  840.      This section defines the three classes  of  character  content  architecture  as
  841. described in  5, namely:
  842.  
  843.      -    a formatted form character content architecture which allows  for  document
  844.           content to be presented (e.g. printed or  displayed)  as  intended  by  the
  845.           originator. Formatted form can be used in any basic component;
  846.  
  847.      -    a processable form character content architecture which allows for document 
  848.           content to be processed (e.g. edited or formatted). Processable form can be 
  849.           used in any basic logical component;
  850.  
  851.      -    a formatted processable form character content architecture which allows for 
  852.           document content to be processed and also to be presented as intended by the 
  853.           originator. Formatted processable form can be used in any basic component.
  854.  
  855.      Paragraphs 15.1, 15.2 and 15.3 specify the categories of presentation attributes and 
  856. control functions that pertain to these content architecture classes. The  individual
  857. presentation attributes and control functions are summarized in Tables 5 and 6/T.416. The 
  858. permissible values and the default values of the presentation attributes and the control 
  859. functions parameter values are defined in  7 and 11 respectively.
  860.  
  861.  
  862.                                     TABLE 5/T.416
  863.                                           
  864.                          Summary of presentation attributes
  865.  
  866.  
  867.  ┌──────────────────────────────────┬───────────────────────────────────┐
  868.  │         Character content        │         Formatted processable     │
  869.  │         architecture class       ├─────────────────────┐             │
  870.  │                                  │        Processable  │             │
  871.  ├──────────────────────────────────┼───────────┐         │             │
  872.  │      Presentation attribute      │ Formatted │         │             │
  873.  ├──────────────────────────────────┼───────────┼─────────┼─────────────┤
  874.  │ Alignment                        │     X     │    X    │      X      │
  875.  │ Character fonts                  │     X     │    X    │      X      │
  876.  │ Character orientation            │     X     │    X    │      X      │
  877.  │ Character path                   │     X     │    X    │      X      │
  878.  │ Character spacing                │     X     │    X    │      X      │
  879.  │ Code extension announcers        │     X     │    X    │      X      │
  880.  │ First line offset                │     X     │    X    │      X      │
  881.  │ Formatting indicator             │     X     │         │      X      │
  882.  │ Graphic character sets           │     X     │    X    │      X      │
  883.  │ Graphic character subrepertoire  │     X     │    X    │      X      │
  884.  │ Graphic rendition                │     X     │    X    │      X      │
  885.  │ Indentation                      │           │    X    │      X      │
  886.  │ Initial offset                   │     X     │         │      X      │
  887.  │ Itemization                      │     X     │    X    │      X      │
  888.  │ Kerning offset                   │     X     │    X    │      X      │
  889.  │ Line layout table                │     X     │    X    │      X      │
  890.  │ Line progression                 │     X     │    X    │      X      │
  891.  │ Line spacing                     │     X     │    X    │      X      │
  892.  │ Orphan size                      │           │    X    │      X      │
  893.  │ Pairwise kerning                 │     X     │    X    │      X      │
  894.  │ Proportional line spacing        │           │    X    │      X      │
  895.  │ Widow size                       │           │    X    │      X      │
  896.  └──────────────────────────────────┴───────────┴─────────┴─────────────┘
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903. 14           Fascicle VII.6 - Rec. T.416
  904.  
  905.                                    TABLE 6/T.416
  906.                                          
  907.                            Summary of control functions
  908.                                          
  909. w
  910.                                      ┌──────────────────────────────────────────────┬────────────────────────────── 
  911. ───────┐
  912.                                           │         Character content                    │         Formatted processable       │
  913.                                           │         architecture class                   ├─────────────────────┐               │
  914.                                           │                                              │        Processable  │               │
  915.                                           ├──────────────────────────────────────────────┼───────────┐         │               │
  916.                                           │          Control function                    │ Formatted │         │               │
  917.                                           ├──────────────────────────────────────────────┼───────────┼─────────┼───────────────┤
  918.                                           │ BPH  (Break Permitted Here)                  │           │    X    │       X       │
  919.                                           │ BS   (Backspace)                             │     X     │         │       X       │
  920.                                           │ CR   (Carriage Return)                       │     X     │    X    │       X       │
  921.                                           │ GCC  (Graphic Character Composition          │     X     │    X    │       X       │
  922.                                           │ HPB  (Character Position Relative)           │     X     │         │       X       │
  923.                                           │ HPR  (Character Position Backward)           │     X     │         │       X       │
  924.                                           │ IGS  (Identify Graphic Subrepertoire         │     X     │    X    │       X       │
  925.                                           │ JFY  (No Justify)                            │     X     │         │       X       │
  926.                                           │ LF   (Line Feed)                             │     X     │    X    │       X       │
  927.                                           │ NBH  (No Break Here)                         │           │    X    │       X       │
  928.                                           │ PLD  (Partial Line Down)                     │     X     │    X    │       X       │
  929.                                           │ PLU  (Partial Line Up)                       │     X     │    X    │       X       │
  930.                                           │ PTX  (Parallel Texts)                        │           │    X    │       X       │
  931.                                           │ SACS (Set Additional Character Spacing)      │     X     │         │       X       │
  932.                                           │ SCS  (Set Character Spacing)                 │     X     │    X    │       X       │
  933.                                           │ SGR  (Select Graphic Rendition)              │     X     │    X    │       X       │
  934.                                           │ SHS  (Select Character Spacing)              │     X     │    X    │       X       │
  935.                                           │ SLS  (Set Line Spacing)                      │     X     │    X    │       X       │
  936.                                           │ SOS  (Start Of String)                       │           │         │       X       │
  937.                                           │ SP   (Space)                                 │     X     │    X    │       X       │
  938.                                           │ SRCS (Set Reduced Character Spacing)         │     X     │         │       X       │
  939.                                           │ SRS  (Start Reverse String)                  │     X     │    X    │       X       │
  940.                                           │ SSW  (Set SPACE Width)                       │     X     │         │       X       │
  941.                                           │ ST   (String Terminator)                     │           │         │       X       │
  942.                                           │ STAB (Selective Tabulation)                  │     X     │    X    │       X       │
  943.                                           │ SUB  (Substitute)                            │     X     │    X    │       X       │
  944.                                           │ SVS  (Select Line Spacing)                   │     X     │    X    │       X       │
  945.                                           │ VPB  (Line Position Backward)                │     X     │    X    │       X       │
  946.                                           │ VPR  (Line Position Relative)                │     X     │    X    │       X       │
  947.                                           │ Code extension control functions             │     X     │    X    │       X       │
  948.                                           └──────────────────────────────────────────────┴───────────┴─────────┴───────────────┘
  949.  
  950.  
  951.      In order to aid the definition of content architecture levels for use in document 
  952. application profiles (see Recommendation T.411), the presentation attributes and  the
  953. control functions that are applicable to each content architecture class are listed in 
  954. Annex A, together with their permissible values and default values.
  955.  
  956. 15.1 Formatted character content architecture class
  957.  
  958.      The following categories of presentation attributes and control functions pertain to 
  959. the formatted character content architecture class:
  960.  
  961.      -    shared presentation attributes (see  7.1);
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.                                                     Fascicle VII.6 - Rec. T.416    15
  972.  
  973.  
  974.  
  975.      -    layout presentation attributes (see  7.2);
  976.      -    shared control functions (see  11.1);
  977.      -    layout control functions (see  11.2).
  978.  
  979. 15.2 Processable character content architecture class
  980.  
  981.      The following categories of presentation attributes and control functions pertain to 
  982. the processable character content architecture class:
  983.      -    shared presentation attributes (see  7.1);
  984.      -    logical presentation attributes (see  7.3);
  985.      -    shared control functions (see  11.1);
  986.      -    logical control functions (see  11.3).
  987.  
  988. 15.3 Formatted processable character content architecture class
  989.  
  990.      The following categories of presentation attributes and control functions pertain to 
  991. the formatted processable character content architecture class:
  992.      -    shared presentation attributes (see  7.1);
  993.      -    layout presentation attributes (see  7.2);
  994.      -    logical presentation attributes (see  7.3);
  995.      -    shared control functions (see  11.1);
  996.      -    layout control functions (see  11.2);
  997.      -    logical control functions (see  11.3);
  998.      -    delimiters (see  11.4).
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034. 16           Fascicle VII.6 - Rec. T.416
  1035.